#!/bin/bash

commit=$1

if [[ -z $commit ]];then
	echo "example: ./push.sh [commit内容]"
	exit 1
fi

function main() {
	echo "开始添加所有更改"
	git add .


	echo "开始提交"
	echo "commit: $commit"
	git commit -m "$commit"

	echo "开始推送"
	git push
	echo "successful"
}

main
exit 0

